
import request from '@/utils/request/index.js'
export default {
  // 钱包首页
  getMoneyInfo(data) {
    return request({
      url: '/store/mini/money/getMoneyInfo',
      method: 'POST',
      data
    })
  },
  // 余额明细
  getMoneyLogList(data) {
    return request({
      url: '/store/mini/money/getMoneyLogList',
      method: 'POST',
      data
    })
  },
  // 余额明细--月份统计数据
  getMoneyStatistics(data) {
    return request({
      url: '/store/mini/money/getMoneyStatistics',
      method: 'POST',
      data
    })
  },
  // 查询银行名称
  getBankName(data) {
    return request({
      url: '/store/mini/money/getBankName',
      method: 'POST',
      data
    })
  },
  // 提现中金额列表
  getInWithdrawalList(data) {
    return request({
      url: '/store/mini/money/getInWithdrawalList',
      method: 'POST',
      data
    })
  },
  // 已提现金额列表
  getWithdrawalList(data) {
    return request({
      url: '/store/mini/money/getWithdrawalList',
      method: 'POST',
      data
    })
  },
  // 待结算收益列表
  getUnsettledProfitList(data) {
    return request({
      url: '/store/mini/money/getUnsettledProfitList',
      method: 'POST',
      data
    })
  },
  // 流水类型列表
  getChangeType(data) {
    return request({
      url: '/store/mini/money/getChangeType',
      method: 'POST',
      data
    })
  },
  // 提现
  submitWithdrawal(data) {
    return request({
      url: '/store/mini/trade/withdrawal',
      method: 'POST',
      data
    })
  },
  // 提现验证码
  withdrawalCode(data) {
    return request({
      url: '/store/common/sms/sendCode',
      method: 'POST',
      data
    })
  },
  // 银行卡列表
  getBankList(data) {
    return request({
      url: '/store/mini/money/getBankList',
      method: 'POST',
      data
    })
  },
  // 查询银行名称
  getBankName(data) {
    return request({
      url: '/store/mini/money/getBankName',
      method: 'POST',
      data
    })
  },
  // 添加银行卡
  addBankCard(data) {
    return request({
      url: '/store/mini/money/addBankCard',
      method: 'POST',
      data
    })
  },
}